package com.neusoft.service;
import com.neusoft.entity.Admin;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient(value = "provider-banji")
public interface AdminComsumerService {
    @PostMapping("/admin/queryAll")
    Object queryAll(@RequestParam("page") Integer page, @RequestParam("limit")Integer limit,@RequestBody Admin admin);

    @PostMapping("/admin/save")
    public Object save(@RequestBody Admin admin);

    @PostMapping("/admin/delete")
    public boolean delete(@RequestBody Integer[] ids);


}
